package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Product;
import cn.wolfcode.crm.query.ObjectQuery;
import cn.wolfcode.crm.query.PageResult;

import java.util.List;
import java.util.Map;


public interface IProductService {
    void save(Product record);

    void delete(Long id);

    void update(Product record);

    Product get(Long id);

    List<Product> getAll();


    PageResult<Product> query(ObjectQuery qo);

    //改变保险状态
    void changState(Long id);
    //改变不计免赔状态
    void deductionState(Long id);
    //通过产品Id找机构名称
    List<Product> queryByOrganizationId(Long id);

    List<Map> queryProductListByBillId(Long insurancebillId);
}
